import request from '@/utils/request'

// 查询车数
export function carStatistics() {
  return request({
    url: '/statistics/carStatistics',
    method: 'get',
  })
}

// 人员
export function personStatistics() {
  return request({
    url: '/statistics/personStatistics',
    method: 'get',
  })
}

// echarts
export function personCarChart(data) {
  return request({
    url: '/statistics/personCarChart',
    method: 'post',
		data: data
  })
}

// 人员
export function openDoor(id) {
  return request({
    url: '/zhmk/device/openDoor/'+ id,
    method: 'get',
  })
}